{include file="header.html"}

<div class="page-header">
	<h6>
		统计报表
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			报表
		</small>

	</h6>
</div>

<form class="form-inline" action="?app=statistics&act=member" method="get">
<input type="hidden" name="app" id="app" value="statistics" />
<input type="hidden" name="act" id="act" value="member" />
<input type="text" name="year" id="dtyear" value="{$year}" placeholder="选择年份" />
<input type="text" name="month" id="dtmonth" value="{$month}" placeholder="选择月份" />
<button type="submit" class="btn btn-info btn-sm">
	<i class="ace-icon fa fa-search bigger-110"></i>搜索
</button>
</form>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

{include file="footer.html"}
<script src="../framework/class/highcharts-4.0.4/js/highcharts.js"></script>
<script src="../framework/class/highcharts-4.0.4/js/modules/exporting.js"></script>
<script>
$(function(){
    $('#dtyear').datepicker({
        just:'year',format:'yyyy'
    });
    $('#dtmonth').datepicker({
        just:'month',changeYear:false,format:'mm'
    });
    $('#container').highcharts({
        title: {
            text: '每日注册人数',
            x: -20 //center
        },
        subtitle: {
            text: '',
            x: -20
        },
        xAxis: {
            categories: [{$days}]
        },
        yAxis: {
            title: {
                text: '人数'
            },
            plotLines: [{
                value: 0,
                width: 1,
                color: '#808080'
            }]
        },
        tooltip: {
            valueSuffix: '人'
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'middle',
            borderWidth: 0
        },
        series: [{
            name: '每日注册人数',
            data: [{$rs}]
        }]
    });
});
</script>